﻿#region

using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Quartz;

#endregion

namespace Vin.Extension.Quartz;

public class ExtensionEntry : IVinExtension
{
    public void AddVinExtension(WebApplicationBuilder builder)
    {
    }

    public void AddVinExtension(IServiceCollection services)
    {
        services.AddQuartz(options => { });
        services.AddQuartzHostedService(options => { options.WaitForJobsToComplete = true; });
    }

    public void UseVinExtension(WebApplication app)
    {
    }
}